<template>
  <Card title="" v-bind="$attrs">
    <template #extra>
      <!-- <a-button type="link" size="small">更多</a-button> -->
    </template>

    <template v-for="item in items" :key="item">
      <CardGrid class="!w-full !md:w-1/4">
        <span class="flex">
          <!-- <Icon :icon="item.icon" :color="item.color" size="30" /> -->
          <span class="ml-4 text-md text-font-weight-bold">{{ item.desc }}</span>
        </span>
        <div class="mt-2 h-10 flex ml-4 text-color-red-500 text-bold ant-font-size-lg justify-center">
          {{ item.data }}
          <!-- <span class="ml-4 text-color-red text-bold-1000" style="font-size:40rpx !important;"></span> -->
        </div>
        <!-- <div class="text-secondary flex justify-between">
          <span>{{ item.group }}</span>
          <span>{{ item.date }}</span>
        </div> -->
      </CardGrid>
    </template>
  </Card>
</template>
<script lang="ts">
  import { defineComponent,ref } from 'vue';
  import { Card } from 'ant-design-vue';
  import { Icon } from '/@/components/Icon';
  // import { groupItems } from './Data';
  export default defineComponent({
    components: { Card, CardGrid: Card.Grid, Icon },
    setup() {
      const items = ref([
        {
          icon: 'ant-design:notification-filled',

          desc: '当前待出库',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '当前待入库',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '当前待拣货',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '当前待包装',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '当前库存：',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '本月入库：',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '本月出库：',
          data: 0,
        },
        {
          icon: 'ant-design:notification-filled',

          desc: '今日出库：',
          data: 0,
        },
      ]);
      return { items };
      // return { items: groupItems };
    },
  });
</script>
